package com.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * ClassName: Plate
 * Description:
 *
 * @author L_Z_R
 * @version 1.0
 * @create 2025/05/16 11:23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Plate {
    private Integer plateId; //板块id
    private String plateName; //板块名称
    private String plateDescription; //板块描述
    private Integer moderatorId; //板块管理员id
    private String plateImg; //板块图片
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime; //板块创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime; //板块更新时间
    private boolean isdeleted; //是否禁用;
    private Integer postCount; // 帖子数量
    private Integer userCount; // 用户数量(发帖用户数)
}
